import 'package:dio/dio.dart';
import 'package:jtsell_app/database/database_helper.dart';
import 'package:jtsell_app/network/http_dispense.dart';

Future dioGet() async {
  String url = "http://www.baidu.com/s";
  Dio dio = new Dio();

  Response response;
  response = await dio.get(
      "https://www.easy-mock.com/mock/5d255754498c5b6b064fc615/example/test01");
  print(response);

//  var params = {"wd": "你好"};
//  response = await dio.get(url, queryParameters: params);
//  print(response.data);
}

void main() async {
//  Future slidesContent = HttpDispense.getSlidesContent();
//
//  await slidesContent.then((value) {
//    print(value);
//  }, onError: (err) {
//    print(err);
//  });

  DatabaseHelper.getInstance();
}
